You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The --allowedTools argument construction is duplicated and inconsistent
Uses both bash variable and inline template logic
Recommendation: Consolidate to use $ALLOWED_TOOLS_ARG consistently
Missing Input Validation:
No validation that cborg_api_key is provided when using CBORG mode
Could cause runtime failures with cryptic error messages
Dependency Assumptions:
install_artl_mcp uses uvx but doesn't verify uv availability
While uv is installed in step 47, this creates tight coupling
⚠️ Logic Issues
Workflow Inconsistency (claude.yml):
The workflow still uses the old anthropics/claude-code-action@beta
Doesn't leverage the new CBORG-enabled local action
Recommendation: Update to use local action for CBORG support
✅ Positive Aspects
Good Documentation: Clear comments explaining CBORG vs Claude Code token differences
Proper Timeouts: Added timeout to main workflow (line 26)
Clean YAML Structure: Well-formatted and readable action definitions
Backward Compatibility: Maintains existing functionality while adding new features
Recommendations
Make API keys conditional:
anthropic_api_key:
description: "Anthropic API key (required when not using CBORG)"required: false
Add input validation step:
if [[ -z"${{ inputs.anthropic_api_key }}"&&-z"${{ inputs.cborg_api_key }}" ]];thenecho"::error::Either anthropic_api_key or cborg_api_key must be provided"exit 1
fi
Make base URL configurable:
cborg_base_url:
description: "CBORG API base URL"required: falsedefault: "https://api.cborg.lbl.gov"
This PR adds valuable CBORG integration but needs security and robustness improvements before merging. The core functionality appears sound, but the implementation has several issues that could lead to security vulnerabilities and runtime failures.
Recommended Action: Request changes to address security concerns and improve input validation before approval.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
cborg_api_keyplumbing to the reusable Claude Code composite action and issue triage wrapperuvxValidation
git diff --cached --checkuv run pythonin a clean worktree